STEP 14: Let's have our triangle say a full sentence just like we did for the rectangle!

You'll combine a string and an integer again. You can use the my_rectangle.say() command as a guide.

  • Change the string in the triangle's .say() command from "I am a sprite." to "My area is ".
  • After the string, use a plus sign + to add str(triangle_area).

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)